package cn.tedu.review;

public class ReviewOOP3 {
    public static void main(String[] args) {
        Ww ww=new Ww();
        ww.eat();
        ww.play();
        System.out.println(ww.a);
        Doggier d=new Ww();
        d.eat();
        d.play();
        System.out.println(d.a);
    }
}
abstract class Doggier {
    int a=9;
    public void eat(){
        System.out.println("狗爱吃红薯");
    }
    abstract void play();
}
class Ww extends Doggier{
    int a=11;
    @Override
    public void eat() {
        super.eat();
    }
    void play() {
        System.out.println("1");
    }

}